<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/8 0008
 * Time: 上午 10:53
 */

namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class SupplierRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Supplier\Controllers', 'prefix' => 'supplier'], function ($router) {
            $router->any('list-of-a-product', 'IndexController@listOfOneProduct');

            $router->any('list', 'IndexController@getList');
            
            $router->any('add', 'IndexController@add');



        });
    }
}